// variable validation teller
function forma_onsubmit(){
	if (document.forma.code.value ==""||document.forma.name.value ==""||document.forma.address.value ==""||document.forma.no_phone.value ==""){
		alert("Sorry, anda belum melengkapi data.")
		document.forma.code.focus();
	return false;
	}
	if (document.forma.code.value.length < 8){
		alert("Sorry, code terlalu pendek.")
		document.forma.code.focus();
	return false;
	}
}

// variable validation member
function formb_onsubmit(){
	if (document.formb.code.value ==""||document.formb.name.value ==""||document.formb.address.value ==""||document.formb.no_phone.value ==""){
		alert("Sorry, anda belum melengkapi data.")
		document.formb.code.focus();
	return false;
	}
	if (document.formb.code.value.length < 8){
		alert("Sorry, code terlalu pendek.")
		document.formb.code.focus();
	return false;
	}
}

// variable validation saldo
function formc_onsubmit(){
	if (document.formc.codem.value ==""||document.formc.trans.value ==""||document.formc.saldo.value ==""||document.formc.note.value ==""||document.formc.codet.value ==""){
		alert("Sorry, anda belum melengkapi data.")
		document.formc.codem.focus();
	return false;
	}
	if (document.formc.codem.value.length < 8){
		alert("Sorry, code terlalu pendek.")
		document.formc.codem.focus();
	return false;
	}
	if (document.formc.codet.value.length < 8){
		alert("Sorry, code terlalu pendek.")
		document.formc.codet.focus();
	return false;
	}
}

// variable show teller data
function showhideteller(id, a){
	var teller1 = document.getElementById(id);
	var teller2 = document.getElementById(a);
	if(teller1.style.visibility=='hidden'){
		teller1.style.visibility='visible';
		teller2.innerHTML='<b><font color="#FF3300">Click here to hide data</font></b>';
	}else{
		teller1.style.visibility='hidden';
		teller2.innerHTML='<b><font color="#FF3300">Click here to show data</font></b>';
	}
}

// variable show member data
function showhidemember(id, a){
	var member1 = document.getElementById(id);
	var member2 = document.getElementById(a);
	if(member1.style.visibility=='hidden'){
		member1.style.visibility='visible';
		member2.innerHTML='<b><font color="#FF3300">Click here to hide data</font></b>';
	}else{
		member1.style.visibility='hidden';
		member2.innerHTML='<b><font color="#FF3300">Click here to show data</font></b>';
	}
}